#!/usr/bin/env bash

# Trabalhando com loop while.
# While: Enquanto status de saida for 0 faça ...

#================== Infinito ================================
#while [[ "1" = "1" ]]; do
#  echo "CTRL + C -> para sair do loop infinito"
#  sleep 2s
#done
#===========================================================

#============== 0 ate 5 =====================================
val="0"
while [[ "$val" -le "5" ]]; do
   echo "o valor e: $val"
   val=$((val+1))
done
#=============================================================







